package com.eqdd.yiqidian.ui.companyspace

import com.eqdd.yiqidian.bean.rebuild.slimedit.SlimEditEnterBean
import com.eqdd.yiqidian.http.HttpConfig
import com.eqdd.yiqidian.ui.companyspace.base.BaseSpaceAddActivity
import com.lzy.okgo.model.HttpParams


/**
 * Created by jhj on 18-6-25.
 */
class AdvancedEventAddActivity : BaseSpaceAddActivity() {

    override val title: String
        get() = "先进事迹"
    override val url: String
        get() = HttpConfig.BASE_URL + HttpConfig.ADVANCED_EVENT_ADD

    override val isHasImg: Boolean
        get() = false

    override fun uploadParams(): HttpParams {
        val params = HttpParams()
        val bean = slimAdapterEx.data
        params.put("title", bean[0].content)
        params.put("content", bean[1].content)
        return params
    }

    override fun setEditBeans() {
        datas.add(SlimEditEnterBean("标题", "", 0, "请输入").setNeed(true))
        datas.add(SlimEditEnterBean("内容", "", 1, "请输入").setNeed(true))
    }

}